package com.xinsoft.entity.dto;

import com.xinsoft.entity.vo.ErpStocktakingDetailVO;
import com.xinsoft.entity.vo.ErpStocktakingVO;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 盘点方案
 * */
@Data
public class KisStocktakingDetailDto {

    private Integer FRECORDS;       //": 1,
    private String FNumber;       //": "01.01.00002",
    private String FName;       //": "00120130",
    private String FModel;       //": "EE20,  DMR44材质,  单开气隙约0.45mm,  AL=110nH±7% ,  圈数80,  测试条件1KHZ/0.25V, 电感量=655~753uH",
    private String FBatchNo;       //": "201803",
    private String FStockName;       //": "车间现场",
    private String FSpName;       //": "*",
    private String FUnitName;       //: "SET",
    private BigDecimal FQty;       //: 80.0000000000,
    private BigDecimal FSecQty;       //: 0.0000000000,
    private String FAuxPropName;       //: "",
    private Integer FInterID;       //: 8,
    private Integer FItemID;       //: 1427,
    private Integer FStockID;       //: 4071,
    private Integer FStockPlaceID;       //: 0,
    private Integer FUnitID;       //: 1412,
    private Integer FKFPeriod;       //: 0,
    private String FKFDate;       //: "",
    private Integer FAuxPropID;       //: 0

    public ErpStocktakingDetailVO voToPo(KisStocktakingDetailDto item) {
        if (item == null) {
            return null;
        }
        ErpStocktakingDetailVO erpStocktakingDetailVO = new ErpStocktakingDetailVO();
        erpStocktakingDetailVO.setFRECORDS(item.getFRECORDS());
        erpStocktakingDetailVO.setFNumber(item.getFNumber());
        erpStocktakingDetailVO.setFName(item.getFName());
        erpStocktakingDetailVO.setFModel(item.getFModel());
        erpStocktakingDetailVO.setFBatchNo(item.getFBatchNo());
        erpStocktakingDetailVO.setFStockName(item.getFStockName());
        erpStocktakingDetailVO.setFSpName(item.getFSpName());
        erpStocktakingDetailVO.setFUnitName(item.getFUnitName());
        erpStocktakingDetailVO.setFQty(item.getFQty());
        erpStocktakingDetailVO.setFSecQty(item.getFSecQty());
        erpStocktakingDetailVO.setFAuxPropName(item.getFAuxPropName());
        erpStocktakingDetailVO.setFInterID(item.getFInterID());
        erpStocktakingDetailVO.setFItemID(item.getFItemID());
        erpStocktakingDetailVO.setFStockID(item.getFStockID());
        erpStocktakingDetailVO.setFStockPlaceID(item.getFStockPlaceID());
        erpStocktakingDetailVO.setFUnitID(item.getFUnitID());
        erpStocktakingDetailVO.setFKFPeriod(item.getFKFPeriod());
        erpStocktakingDetailVO.setFKFDate(item.getFKFDate());
        erpStocktakingDetailVO.setFAuxPropID(item.getFAuxPropID());
        return erpStocktakingDetailVO;
    }



}
